package jukebox.model.musicboard;

import java.util.List;
import java.util.Map;

import jukebox.model.common.PagingBean;

public interface MusicBoardDAO {
	public void writeContent(MusicBoardVO mbvo);
	public void updateContent(MusicBoardVO mbvo);
	public void deleteContent(int no);
	
	public List<MusicBoardVO> getContentListPerPage(Map map);
	public List<MusicBoardVO> getContentListPerMorePage(Map map);
	public int getTotalContent(MusicBoardVO mbvo);

	public MusicBoardVO findContentByNo(int no);
	
	//추천
	public int updateLike(int boardNo);
	public void updateHit(int boardNo);
	
	//게시글 추천 수 기준의 랭킹
	public List<MusicBoardVO> getRankListByLike();

}
